import Layout from '@/layout/index.vue'

const dispatch = {
  path: '/dispatch',
  component: Layout,
  redirect: '/transport',
  meta: { title: '调度管理', icon: 'dispatch' },
  children: [
    {
      path: '/transport',
      name: '',
      component: () => import('@/views/dispatch/transport/transport.vue'),
      meta: { title: '运输任务管理' }
    },
    {
      path: '/transport-detail',
      name: '',
      component: () => import('@/views/dispatch/transport/components/transportDetail/transportDetail.vue'),
      hidden: true,
      meta: { title: '运输任务详情' }
    },
    {
      path: '/line-manage',
      name: '',
      component: () => import('@/views/dispatch/line/line-manage.vue'),
      meta: { title: '线路管理' }
    },
    {
      path: '/pick-up',
      name: '',
      component: () => import('@/views/dispatch/pickUp/pickUp.vue'),
      meta: { title: '取件作业管理' }
    },
    {
      path: '/delivery',
      name: '',
      component: () => import('@/views/dispatch/delivery/delivery.vue'),
      meta: { title: '派件作业管理' }
    }
  ]
}
export default dispatch
